﻿<Window
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	x:Class="DotBeer.UI.WPFClient.CustomMessageBox"
	x:Name="Window"
	AllowsTransparency="True" 
    WindowStyle="None" 
    Background="{x:Null}" 
    Closing="Window_Closing" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d" 
    d:DesignWidth="236" 
    d:DesignHeight="118"
    ShowInTaskbar="False" 
    ResizeMode="NoResize" 
    Topmost="True" 
    WindowStartupLocation="CenterOwner" 
    HorizontalAlignment="Left" 
    VerticalAlignment="Top" 
    Width="{Binding Path=Width, ElementName=LayoutRoot}" 
    Height="{Binding Path=Height, ElementName=LayoutRoot}" 
    SizeToContent="WidthAndHeight"
    SnapsToDevicePixels="True">
	<Grid Background="{x:Null}" x:Name="LayoutRoot" Margin="0,0,10,10" HorizontalAlignment="Left" VerticalAlignment="Top">
		<Grid.Effect>
			<DropShadowEffect/>
		</Grid.Effect>
        <!--<Grid.BitmapEffect>
            <DropShadowBitmapEffect />
        </Grid.BitmapEffect>-->
		<Grid.RowDefinitions>
			<RowDefinition Height="30"/>
			<RowDefinition Height="Auto" MaxHeight="300" MinHeight="28"/>
			<RowDefinition Height="50"/>
		</Grid.RowDefinitions>
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="*" MaxWidth="200"/>
			<ColumnDefinition Width="30"/>
		</Grid.ColumnDefinitions>
		<Border Width="Auto" Grid.RowSpan="3" Background="{DynamicResource BrushWindowBackground}" CornerRadius="{DynamicResource CornerRadiusSmall}" BorderThickness="{DynamicResource ThicknessSize_1}" BorderBrush="{DynamicResource ImpassiveColor4}" Name="BorderConent" Grid.ColumnSpan="2" />
		<Border HorizontalAlignment="Stretch" Width="Auto" Grid.RowSpan="1" BorderBrush="{DynamicResource ImpassiveColor4}" BorderThickness="{DynamicResource ThicknessSize_1}" CornerRadius="3,3,0,0" MouseDown="Border_MouseDown" Grid.ColumnSpan="2" Name="BorderTop">
			<Border.Background>
				<LinearGradientBrush EndPoint="0.5,0" StartPoint="0.5,1">
					<GradientStop Color="#FFA1AC9E" Offset="0"/>
					<GradientStop Color="#FFA9BDA2" Offset="1"/>
				</LinearGradientBrush>
			</Border.Background>
            <TextBlock HorizontalAlignment="Left" x:Name="TextBlockTitle" Text="" TextWrapping="Wrap" Margin="5,5,0,5" VerticalAlignment="Center" d:LayoutOverrides="Height"/>
		</Border>
		<Button Margin="6,0,5,0" x:Name="ButtonClose" Style="{DynamicResource ButtonLightStyle}" VerticalAlignment="Center" Height="20" Content="X" FontFamily="Arial" FontWeight="Bold" Click="ButtonClose_Click" Grid.Column="1" Visibility="Hidden"/>
		<StackPanel HorizontalAlignment="Center" x:Name="StackPanelButtons" VerticalAlignment="Center" Width="Auto" Grid.Row="2" Grid.RowSpan="1" Orientation="Horizontal" Grid.ColumnSpan="2"/>
		<TextBlock HorizontalAlignment="Left" x:Name="TextBlockMessage" VerticalAlignment="Top" Grid.Row="1" Text="" TextWrapping="Wrap" Margin="30,5,5,5"/>
	</Grid>
</Window>